# $Id$
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=noto-fonts-emoji
_pkgver=2017-08-25
_commit=8a6530b7b26e8c5ee7b177a1388d492bbcaf4319
pkgver=${_pkgver//-}
pkgrel=2
pkgdesc="Google Noto emoji fonts"
arch=(any)
url="https://www.google.com/get/noto/"
license=(custom:OFL)
depends=(fontconfig)
source=($pkgname-$pkgver.zip::"https://github.com/googlei18n/noto-emoji/archive/$_commit.zip"
        66-noto-color-emoji.conf 66-noto-emoji.conf)
sha256sums=('eef8620340f8f229772fd215282b08273685b416b910698b8979f3c21b5b653b'
            '5df9fbf693abe3ba663362375d0e02c17345860c54809166be2c22c4e83fc567'
            'ba85f8cdeec0fb505848ec18ef94ccf31aff9ad4690f0c7bcd12098d9df187f4')

package() {
  cd noto-emoji-*
  mkdir -p "$pkgdir"/usr/share/fonts/noto
  install -m644 fonts/*.ttf "$pkgdir"/usr/share/fonts/noto
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE

# Install fontconfig files
  mkdir -p "$pkgdir"/etc/fonts/conf.avail
  install -m644 "$srcdir"/*.conf "$pkgdir"/etc/fonts/conf.avail/
}
